<template>
  <div>
    <slot>
      <el-avatar fit="fill" :src="$store.state.avatar"></el-avatar>
      <el-dropdown-menu slot="dropdown">
        <el-dropdown-item>写文章</el-dropdown-item>
        <el-dropdown-item>我赞过的</el-dropdown-item>
        <el-dropdown-item>我的关注</el-dropdown-item>
        <el-dropdown-item>修改信息</el-dropdown-item>
        <el-dropdown-item command="signout">登出</el-dropdown-item>
      </el-dropdown-menu>
    </slot>
  </div>
</template>

<script>
export default {
  name: "UserItem",
  data() {
      return {
          user: {
          },
      }
  },
  methods: {
  }
};
</script>

<style>
</style>